package com.mySchool.mapper;

import com.baomidou.mybatisplus.core.mapper.*;
import com.mySchool.entity.DTO.ProvinceInsertRequest;
import com.mySchool.entity.DTO.ProvinceUpdateRequest;
import com.mySchool.entity.PO.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.*;

/**
* @author : Hinton
* @时间 : 2024/11/10 下午6:31
*/
@Mapper
public interface  ProvinceMapper extends BaseMapper<ProvincePO> {
    List<ProvincePO> findAll();

    List<ProvincePO> findByName(String name);

    List<ProvincePO> findDetail(String name);

    void insert(ProvinceInsertRequest newProvince);

    void delete(List<Integer> ids);

    void update(ProvinceUpdateRequest newProvince);

}
